//用户API
import request from '@/utils/request'
const api_group = 'users'

export default{
    register(user,authCode){
        return request({
            url: `/${api_group}/register?authCode=${authCode}`,
            method: 'post',
            data: user
        })
    },
    login(passwordAndUsernameVO){
        return request({
            url: `/${api_group}/login`,
            method: 'post',
            data: passwordAndUsernameVO
        })
    }

}